#include <iostream>
#include <windows.h>
#include <utility>

using namespace std;

//  一亿次 int 类型加减混合运算
pair<long int, long int> YyAddSub(int N1, int N2) {
    for (int i = 1; i <= 100000000; i++) {
        N1++;
        N2--;
    }
    return make_pair(N1, N2);
}

int main() {
    DWORD startSec = GetTickCount();
    pair<long int, long int> p1;

    for (int i = 1; i <= 10; i++) {
        p1 = YyAddSub(0, 100000000);
    }
    cout << " 单次平均耗时(ms)：" << (GetTickCount() - startSec) / 10 << "，元祖结果:(" << p1.first<< ", " << p1.second<< ")" << endl;
    return 0;
}
